import { Entity, Column } from 'typeorm';
import { PublicEntity } from './base/public.entity';

/**
 * 公司实体表
 */
@Entity({ name: 'company' })
export class CompanyEntity extends PublicEntity {
  @Column({ length: 36, comment: '公司id', unique: true })
  eid: string;

  @Column({ length: 32, comment: '公司名', unique: true })
  name: string;

  @Column({ length: 32, nullable: true, comment: '公司官网' })
  website: string;

  @Column({ length: 32, nullable: true, comment: '公司地点' })
  address: string;

  @Column({ length: 64, nullable: true, comment: '公司统一信用代码' })
  unicode: string;

  @Column({ type: 'text', nullable: true, comment: '公司介绍' })
  introduction: string;
}
